<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div class="page-content" ms-controller="logOperatePage">
	<!--content-->
	<div class="monitor">
		<form id="operateLogForm">
			<div class="monitorLeft">
				<div class="form-group">
					<label class="col-sm-4 control-label">操作人：</label>
					<div class="col-sm-7 ">
						<div class="pr">
							<input id="account" name="account" type="text" class="form-control"
								placeholder="" :duplex="searchModel.account" />
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-4 control-label">所在部门：</label>
					<div class="col-sm-7 ">
						<div class="pr">
							<input id="corpName" name="corpName" type="text" class="form-control"
								placeholder="" :duplex="searchModel.corpName" />
						</div>
					</div>
				</div>
				<div class="form-group dateContainer">
					<label class="col-sm-4 control-label">开始时间：</label>
					<div class="col-sm-7 ">
						<div class="pr">
							<input id="beginTimeString" name="beginTimeString" type="text"
								class="form-control datepicker" placeholder=""
								:duplex="searchModel.beginTime">
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-4 control-label">结束时间：</label>
					<div class="col-sm-7 ">
						<div class="pr">
							<input id="endTimeString" name="endTimeString" type="text"
								class="form-control datepicker" placeholder=""
								:duplex="searchModel.endTime">
						</div>
					</div>
				</div>
				
				<div class="form-group dateContainer">
					<label class="col-sm-4 control-label">IP地址：</label>
					<div class="col-sm-7 ">
						<div class="pr">
							<input id="operateIp" name="operateIp" type="text" class="form-control"
								:duplex="searchModel.operateIp" placeholder="">
						</div>
					</div>
				</div>
				
				<%--<div class="form-group">--%>
				<%--<label  class="col-sm-4 control-label">验证方式：</label>--%>
				<%--<div class="col-sm-7 ">--%>
				<%--<select class="form-control input-sm" :duplex="searchModel.authType">--%>
				<%--<option ms-for="el in @loginTypeModel" ms-attr="{value: el.type}">{{el.name}}</option>--%>
				<%--</select>--%>
				<%--</div>--%>
				<%--</div>--%>

			</div>
			
			<!-- log.searchOperateLog()方法定义在work.js文件里面 -->
			<div class="monitorRight">
				<a href="javascript:void(0);"  class="btnSearch"
					onclick="validateCallback(this, log.searchOperateLog);">查询</a> <a
					href="javascript:void(0);" class="btnSearch grey"
					style="margin-left: 10px;" :visible="false">导 出</a>
			</div>
		</form>
	</div>
	<div class="clearfix"></div>
	<div class="portlet-body">
		<div class="table-scrollable">
			<table class="logList table table-condensed flip-content">
				<thead class="flip-content">
					<tr>

						<th width="20%">操作人</th>
						<th width="15%">所在部门</th>
						<th width="20%">IP地址</th>
						<th width="15%">操作时间</th>
						<th>操作内容</th>
						<%--<th width="10%" class="text-center">操作</th>--%>
					</tr>
				</thead>
				<tbody id="select_tbody">
					<%--内容包括系统管理员名称、所在部门、IP地址、时间、参数类型（例如人脸比对阀值、非工作时间段、每日查询上限等）、参数具体设定值等。调参日志检索方式可根据用户所在部门、名称、时间、IP地址、参数类型--%>
					<%--"content": "添加数据",--%>
					<%--"createMills": 20170518155650807,--%>
					<%--"createTime": 1495094210807,--%>
					<%--"id": "L20170518155650807G3vm8gdUABVm8n",--%>
					<%--"ip": "127.0.0.1",--%>
					<%--"operateIp": "127.0.0.1",--%>
					<%--"operateTable": "t_credit_user",--%>
					<%--"operateType": "ADD",--%>

					<c:if test="${result.code eq 'SUCCESS' }">
						<c:forEach items="${result.data.rows}" var="row"
							varStatus="status">
							<tr>
								<td class="">${row.account}<%--操作人account--%></td>
								<td class="">${row.corpName}<%--所在部门corpName--%></td>
								<td class="">${row.operateIp}</td>
								<td class=""><fmt:formatDate value="${row.createTime }"
										pattern="yyyy-MM-dd HH:mm:ss" /></td>
								<td class="">${row.content}</td>
								<%--<td class="text-center">--%>
								<%--<a href="javascript:;" class="a-detial">删除</a>--%>
								<%--</td>--%>
							</tr>
						</c:forEach>
					</c:if>
				</tbody>
			</table>
		</div>
	</div>



	<!--end content-->
	<div class="clearfix"></div>
</div>

<c:if test="${result.code eq 'SUCCESS' }">

	<script type="text/javascript">
		Page.navigation('page', 'log/operate/page', 'log:page',
				'${result.data.pageSize}', '${result.data.total}',
				'${result.data.pageCount}', '${result.data.currPage}',
				'menuUrl');
	</script>

	<div id="page" class="page"></div>

</c:if>

<script
	src="resources/js/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script
	src="resources/js/bootstrap-datepicker/dist/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<link rel="stylesheet"
	href="resources/js/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" />
<script src="resources/js/app/log.js"></script>